package org.laobai.generation.utils;

import java.io.Closeable;

public class StreamUtil {

    public static void close(Closeable... closeables) {

    }

    public static void close(AutoCloseable... autoCloseables) {
        if (autoCloseables != null && autoCloseables.length != 0) {
            try {
                for (AutoCloseable autoCloseable : autoCloseables) {
                    if (autoCloseable != null) {
                        autoCloseable.close();
                    }
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
